<script setup>
import { onMounted } from 'vue'
import { RouterView } from 'vue-router'
// import { login } from '@/utils/api/auth'
import { useSiteStore } from '@/store/siteinfo'

const siteinfo = useSiteStore()

const ViewImage = window.ViewImage
ViewImage.init(
  '.notes-item-images .notes-item-images__item img'
)

onMounted(async () => {
  let _data = await siteinfo.gen()
  document.title =
    _data.siteTitle + _data.subTitle
})
</script>

<template>
  <!-- <button @click="login({ username: 'admin', password: 'y123123.' })">登录</button> -->
  <RouterView />
</template>

<style scoped></style>
